Function |checked_pow

std/ops/num::|checked_pow


Usage

|checked_pow<N>(val, exp)

Generics

◻ N: CheckedPow

Parameters

↳ val: N
↳ exp: u32

Return

↴ Option<N>


Compute exponent of given value, checking if overflow occurs

This function returns an option containing valᵉˣᵖ, or none if result cause overflow in data type.